<template>
  <title>vue更新问题</title>
  <div>
    <h2>人员信息</h2>
    <ul >
      <li v-for="p of persons" :key="p.id">{{p.name}}--{{p.age}}</li>
    </ul>
  </div>
</template>

<script>

export default {
  name: 'App',
  methods:{

  },
  data(){
    return{
      persons:[
        {'id':'001','name':'lili','age':18},
        {'id':'002','name':'xx','age':18},
        {'id':'003','name':'ss','age':18},
        {'id':'004','name':'fff','age':18}
      ]
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
